package com.bt.vo;

import com.bt.entity.SysMenu;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @Description TODO
 * @Author 青
 * @Date 2023-05-03 12:07
 */
@Data
@NoArgsConstructor
public class SysMenuVO extends SysMenu {
    @ApiModelProperty(value = "编号")
    private Integer id;

    @ApiModelProperty(value = "父级编号")
    private Integer pid;

    @ApiModelProperty(value = "路由名称")
    private String path;

    @ApiModelProperty(value = "组件路径")
    private String component;

    @ApiModelProperty(value = "菜单名称")
    private String title;

    @ApiModelProperty(value = "图标")
    private String icon;

    @ApiModelProperty(value = "是否在菜单中显示，0不显示，1显示")
    private Integer isShow;

    @ApiModelProperty(value = "是否缓存，0否，1是")
    private Integer isCache;

    @ApiModelProperty(value = "是否外联，0否，1是")
    private Integer isLink;

    @ApiModelProperty(value = "重定向地址")
    private String redirect;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createDate;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateDate;

    @ApiModelProperty(value = "删除标记")
    private Integer delFlag;

    @ApiModelProperty(value = "类型，1是菜单，2按钮")
    private Integer type;

    @ApiModelProperty(value = "排序")
    private BigDecimal sort;

    @ApiModelProperty(value = "权限标识")
    private String mark;

   //private SysMenu sysMenu;

    List<SysMenuVO> children;
}
